<link rel="stylesheet" type="text/css" href="res/plugins/zTree/css/zTreeStyle/zTreeStyle.css">
<div class="row-fluid">
	<ul class="breadcrumb">
		<li><i class="icon-home"></i> <a href="index.html">个人空间</a> <i
			class="icon-angle-right"></i></li>
		<li><a href="#">发表文章</a></li>
	</ul>
	<div class="module">
		<!-- BEGIN FORM-->
		<form ng-submit="addBlog()" name="blogForm">
			<div class="control-group ">
				<label class="control-label">标题</label>
				<div class="controls">
					<input type="text" class="span12 m-wrap" name="title" ng-model="blog.title" placeholder="文章标题">
				</div>
			</div>
	
			<div class="control-group ">
				<label class="control-label">摘要</label>
				<div class="controls">
					<textarea type="text" class="span12 m-wrap" ng-model="blog.snippet" placeholder="文章摘要, 言简意赅"></textarea>
				</div>
			</div>
	
			<div class="control-group ">
				<label class="control-label">内容</label>
				<div class="controls">
					<kind-editor ng-model="blog.content" file="blog/upload"></kind-editor>
				</div>
			</div>
			<div class="control-group ">
				<label class="control-label">标签</label>
				<div class="controls">
					<input type="text" class="span12 m-wrap" name="tags" ng-model="blog.tags" placeholder="标签">
				</div>
			</div>
			<div class="control-group ">
				<div class="pull-left">
					<label class="control-label pull-left">系统分类:</label>
					<div class="controls pull-left">
						<ul id="cates_tree" class="ztree"></ul>
					</div>
				</div>
				
				<div class="pull-right">
					<label class="control-label pull-left">我的分类:</label>
					<select ng-model="blogCate" ng-options="cate.name group by cate.pname for cate in blog_categorys"></select>
				</div>
				
				<div class="clear"></div>
			</div>
			<div class="form-actions">
				<button type="submit" class="btn blue">发表</button>
			</div>
		</form>
		<!-- END FORM-->
	</div>
	
</div>